/**
 * \file dmxcon/drivers/nulldev.h
 * \author Christian Spoo
 * \date 07.08.2010
 *
 * Null device driver for debugging purposes
 */

#ifndef __DMXCON__NULLDEV_H__
#define __DMXCON__NULLDEV_H__

#include <dmxcon/device.h>

#ifdef __cplusplus
extern "C" {
#endif

struct device_t *nulldev_create(const char *filename);
int nulldev_destroy(struct device_t *device);

int nulldev_write_command(struct device_t *device, const char *command);

int nulldev_set_range(struct device_t *device, unsigned short end_addr);
int nulldev_set_channel(struct device_t *device, unsigned short channel, unsigned char value);

int nulldev_refresh(struct device_t *device);

#ifdef __cplusplus
}
#endif

#endif

